import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router);

export default new Router({
  mode: 'history',
  base: process.env.BASE_URL,
  routes: [
    {
      path: '/login',
      name: 'login',
      component: () => import('@/views/Login.vue'),
      meta: {
        title: '登录',
        isNotShowLogin: false // 用于配置是否显示bar
      }
    },
    {
      path: '/',
      name: 'index',
      component: () => import('@/views/Index.vue'),
      meta: {
        title: '登录',
        isNotShowLogin: true // 用于配置是否显示bar
      }
    },
    {
      path: '/index',
      name: 'index',
      component: () => import('@/views/Index.vue'),
      meta: {
        title: '登录',
        isNotShowLogin: true // 用于配置是否显示bar
      }
    },
    {
      path: '/previewClient',
      name: 'previewClient',
      component: () => import('@/views/PreviewClient.vue'),
      meta: {
        title: '登录',
        isNotShowLogin: true // 用于配置是否显示bar
      }
    },
    {
      path: '/intentionalClient',
      name: 'intentionalClient',
      component: () => import('@/views/IntentionalClient.vue'),
      meta: {
        title: '登录',
        isNotShowLogin: true // 用于配置是否显示bar
      }
    },
    {
      path: '/count',
      name: 'count',
      component: () => import('@/views/Count.vue'),
      meta: {
        title: '登录',
        isNotShowLogin: true // 用于配置是否显示bar
      }
    }
  ]
})
